

import sys
import time
from pymata4 import pymata4

"""
This example sets up and control an ADXL345 i2c accelerometer.
It will continuously print data the raw xyz data from the device.
"""




def i2cCallPwd(my_board):
    my_board.set_pin_mode_i2c()
    while True:
        for i in  [12,13,14,15]:
            my_board.i2c_write(i, [0,0])
            # time.sleep(.1)


board = pymata4.Pymata4()

if __name__ == '__main__':
    i2cCallPwd(board)

# try:
#     i2cCallPwd(board)
# except KeyboardInterrupt:
#     board.shutdown()
#     sys.exit(0)
